package com.liziba.trend.entity;

//import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ProjectName: fund
 * @ClassName: Result
 * @Author: liziba
 * @Description: rest结果
 * @Date: 2021/1/22 15:43
 * @Version: 1.0
 */

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value="Result<T>对象", description="")
public class Result<T> {

    private boolean flag;//是否成功
    private Integer code;//返回码
    private String message;//返回消息
    private T data;//返回数据

}
